# conding = utf-8

from selenium.webdriver.common.by import By

left_menu_sys = By.XPATH, "//li//span[text()='财务管理']"
left_menu = By.XPATH, '//*[@id="app"]/section/aside/div/ul/li[6]/ul/li[4]/a'

btn_unfold = By.XPATH, "//a[contains(text(), '展开')]"
id_send = By.CSS_SELECTOR, "input[placeholder='请输入单据编号']"

time_began = By.XPATH, "//form/div/div/div/div/div/span/span/span/input[@placeholder='开始时间']"
time_left = By.XPATH, "//a[@title='上一年 (Control键加左方向键)']"
time_began_open = By.XPATH, '/html/body/div[34]/div/div/div/div/div[1]/div[1]/div[2]/div[2]/table/tbody/tr[1]/td[2]'
time_finishes_open = By.XPATH, '/html/body/div[34]/div/div/div/div/div[1]/div[2]/div[2]/div[2]/table/tbody/tr[5]/td[5]'
find_expected = By.XPATH, '//td[text()="FK00000001079"]'
unit = By.XPATH, '//*[@id="app"]/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[3]/div/div[2]/div/span/div'
unit_open = By.XPATH, "//li[contains(text(), '供应商1')]"
operator = By.XPATH, '//*[@id="app"]/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[4]/div/div[2]/div/span/div'
operator_open = By.XPATH, "//li[contains(text(), '测试用户')]"
finance = By.XPATH, '//*[@id="app"]/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[5]/div/div[2]/div/span/div'
finance_open = By.XPATH, "//li[contains(text(), '小曹')]"
account = By.XPATH, '//*[@id="app"]/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[6]/div/div[2]/div/span/div'
account_open = By.XPATH, "//li[contains(text(), '账户1')]"
state = By.XPATH, '//*[@id="app"]/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[7]/div/div[2]/div/span/div'
state_open = By.XPATH,  "//li[contains(text(), '未审核')]"
remark = By.CSS_SELECTOR, "input[placeholder='请输入单据备注']"

find_btn = By.XPATH, "//button[span[text()='查 询']]"
find_reset = By.XPATH, "//button[span[text()='重 置']]"


add_btn = By.XPATH, "//button[span[text()='新增']]"
add_select_btn = By.XPATH, "//form/div/div/div/button[span='选择单据']"
add_client = By.XPATH, '//*[@id="organId"]'


add_select_id = By.XPATH, "//form/div/div/div/div/div/span/input[@placeholder='请输入单据编号查询']"
add_select_name = By.XPATH, "//form/div/div/div/div/div/span/input[@placeholder='请输入名称、规格、型号']"
add_select_began = By.XPATH,'//*[@id="app"]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[2]/div[2]/div/div/div[2]/div/div[2]/div[2]/div[1]/form/div/div[3]/div/div[2]/div/span/span/span/input[1]'
add_select_year = By.XPATH, "//a[@title='上一年 (Control键加左方向键)']"
add_select_began_date = By.XPATH,'/html/body/div[41]/div/div/div/div/div[1]/div[1]/div[2]/div[2]/table/tbody/tr[1]/td[2]'
add_select_finishes_date= By.XPATH,'/html/body/div[41]/div/div/div/div/div[1]/div[2]/div[2]/div[2]/table/tbody/tr[5]/td[5]'
add_select_expected= By.XPATH,"//span[a='CGRK00000000651']"
add_select_button = By.XPATH,'//*[@id="app"]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[2]/div[2]/div/div/div[2]/div/div[2]/div[2]/div[1]/form/div/span/div/button[1]'

add_chosen = By.XPATH,'//*[@id="app"]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[2]/div[2]/div/div/div[2]/div/div[2]/div[2]/div[2]/div/div/div/div/div/table/tbody/tr/td[1]/span/label'
add_select_identify= By.XPATH,"//div/button[span='确 定']"
add_cancel = By.XPATH,"//div/button[span='取 消']"
add_finance = By.XPATH,'//*[@id="handsPersonId"]'

add_amount = By.XPATH, "//label/input[@placeholder='请输入本次付款']"
add_remark = By.XPATH, "//label/input[@placeholder='请输入备注']"

get_tishi = By.XPATH,"//div[@class='ant-tooltip ant-tooltip-placement-top' and contains(@style,'display: none')]"
add_button = By.XPATH, "//div/button[span='保 存']"

update = By.XPATH, "//tr[1]/td/span/a[text()='编辑']"
update_beginning = By.XPATH, '//*[@id="app"]/section/section/main/div[2]/div/div/div/div/div[4]/div/div/div[2]/div/div[2]/div[2]/div[1]/div/form/div[2]/div/div/button[2]'
beginning_btn = By.XPATH, '/html/body/div[44]/div/div[2]/div/div[2]/div/div/div[2]/button[2]'

delete = By.XPATH,"//tr[1]/td/span/a[text()='删除']"
delete_btn = By.XPATH, "//div[@class='ant-popover-buttons']/button[span='确 定']"

delete_expected = By.XPATH, "//tr[1]/td[4]"

batch = By.XPATH,'//tr[1]/td/span/label'

batch_btn = By.XPATH, "//div/button[@class='ant-btn ant-dropdown-trigger']"
pl_delete = By.XPATH,"//ul[@data-v-5a031cec]/li[1]"
pl_audit = By.XPATH,"//ul[@data-v-5a031cec]/li[2]"
pl_anti_audit = By.XPATH, "//ul[@data-v-5a031cec]/li[3]"
queding = By.XPATH,"/html/body/div[45]/div/div[2]/div/div[2]/div/div/div[2]/button[2]"

